package liuch.learnjdbc.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import liuch.learnjdbc.service.IBusinessService;

/**
 * @author: liuchenhui
 * @create: 2019-08-01 13:17
 **/
@Controller
public class BusinessController {

    @Autowired
    IBusinessService businessService;

    @RequestMapping("/test")
    @ResponseBody
    public String test() {
        businessService.doBusiness();
        return "ok";
    }
}
